From: Florian Müllner Date: Wed, 21 Oct 2020 01:29:18 +0000 (+0200) Subject: audioDeviceSelection: Center-align icons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~780 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5cfec80e9d470165dae4c4c636ddd332da8b4279;p=gnome-shell.git audioDeviceSelection: Center-align icons When the icon area gets allocated additional space, we want the icons centered rather than left-aligned. This may happen in locales with long-ish translations for the title or buttons when only a subset of possible icons is shown. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3307 --- diff --git a/js/ui/audioDeviceSelection.js b/js/ui/audioDeviceSelection.js index 1e9cb11fe..07b817133 100644 --- a/js/ui/audioDeviceSelection.js +++ b/js/ui/audioDeviceSelection.js @@ -43,6 +43,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({ this._selectionBox = new St.BoxLayout({ style_class: 'audio-selection-box', + x_align: Clutter.ActorAlign.CENTER, x_expand: true, }); content.add_child(this._selectionBox);